/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.l4.app.ui;

import javax.swing.JFrame;

public class Ui {

    public JFrame show(String path) throws InterruptedException {
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.add(new DrawingBoard(path));
        System.out.println(DrawingBoard.width + "===========" + DrawingBoard.height);        
        frame.setBounds(100, 100, DrawingBoard.width, DrawingBoard.height);
        frame.setVisible(true);
        return frame;
    }
}
